package com.zbkj.crmeb.chant.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class AddRenewalRequest implements Serializable {

    @ApiModelProperty(value = "商户id")
    @NotNull(message = "商户id不能为空")
    private Integer merId;

    @ApiModelProperty(value = "到期时间")
    @NotNull(message = "到期时间不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date expirationTime;

    @ApiModelProperty(value = "续费金额")
    @NotNull(message = "续费金额不能为空")
    private BigDecimal price;

    @ApiModelProperty(value = "是否支付回调", hidden = true)
    private Boolean flag;

}